package com.nageoffer.subject.application.convert;

import com.nageoffer.subject.application.dto.SubjectCategoryDTO;
import com.nageoffer.subject.domain.entity.SubjectCategoryBO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 题目 BO 转化接口
 */
@Mapper
public interface SubjectCategoryDTOConverter {
    SubjectCategoryDTOConverter INSTANCE = Mappers.getMapper(SubjectCategoryDTOConverter.class);

    SubjectCategoryBO convertDTOToCategoryBO(SubjectCategoryDTO subjectCategoryDTO);

    List<SubjectCategoryDTO> convertCategoryBOListToCategoryDTOList(List<SubjectCategoryBO> subjectCategoryBOList);

}